package com.example.cloud.model.business.medical;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by wangtao on 2018/7/2.
 * 服务项目
 */
@Entity(name = "treat_plan_service_project")
@Data
@EqualsAndHashCode(callSuper = false)
public class TreatPlanServiceProject extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 患者主键
    @Column(name = "patient_id")
    private Long patientId;
    // 会员主键
    @Column(name = "member_id")
    private Long memberId;
    // 服务项目主键
    @Column(name = "project_id")
    private Long projectId;
    // 服务项目名称
    @Column(name = "project_name")
    private String projectName;
    // 价格
    @Column(name = "price")
    private BigDecimal price;
    // 收费状态{0：未收费 1：已收费}
    @Column(name = "charge_status", columnDefinition = "INT DEFAULT 0")
    private int chargeStatus;
    // 抵扣状态{0：未抵扣 1：已抵扣}
    @Column(name = "deduct_status", columnDefinition = "INT DEFAULT 0")
    private int deductStatus;
    // 抵扣时间
    @Column(name = "deduct_time")
    private Date deductTime;
}
